package com.yoo.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@TableName("author") 
public class Author extends Model<Author>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	

	@TableId("author_id")
	private Long authorId;
	private String nickname;
	@JsonInclude(Include.NON_NULL)
	private String  desc;
	
	private String avatarUrl;	
	@JsonInclude(Include.NON_NULL)
	private Date createTime;
	@JsonInclude(Include.NON_NULL)
	private String  motto;//座右铭
	
	@Override
	protected Serializable pkVal() {
		return this.authorId;
	}
	
}
